package de.koller.balance.input;

import de.koller.balance.BNode;
import de.koller.oceanFramework.gl.util.InputGL;
import de.koller.oceanFramework.tree.Child;
import org.lwjgl.input.Keyboard;

public class BInput extends BNode {
	@Child private final InputGL input = new InputGL();
	
	@Override
	protected void update( int elapsedTime ) {
		super.update( elapsedTime );
		
		if( input.isKeyPressed( Keyboard.KEY_F12 ) )
			broot.stop();
		if( input.isKeyPressed( Keyboard.KEY_R ) )
			broot.quality = true;
	}
	
}
